__author__ = 'gsoft2-3'
import argparse
import Main
import ConfigCheck

parser = argparse.ArgumentParser(description='Process some integers.')

#parser.add_argument('integers', metavar='N', type=int, nargs='+',
#                    help='an integer for the accumulator')

parser.add_argument('--sum', dest='accumulate', action='store_const',
                    const=sum, default=max,
                    help='sum the integers (default: find the max)')

parser.add_argument('path', metavar='2', type=str, nargs='+',
                    help='strings.xml compare')

args = parser.parse_args()
#print args.path[0]+args.path[1]
#Main.compare(args.path[0],args.path[1])

myvalueslist = ConfigCheck.config_values_cehck()
mypackagelist = ConfigCheck.config_package_cehck()

for m in mypackagelist:
    print "=================>>>>>package check star:"+m
    for n in myvalueslist:
        path0=args.path[0]+m+"res/"+n+"/strings.xml"
        path1=args.path[1]+m+"res/"+n+"/strings.xml"
        print "##################start "+n+" compare:"
        Main.compare(path0,path1)
        print "##################end "+ n + "compare\n"
    print "=================>>>>>package check end:"+m+'\n\n\n'
